﻿//====================================================================
// Create by Daniel
// Copyright: YunStudio Inc.
// file： YCUser.cs
// project ：YunCMS
// Build time：2012-09-09
// modify:
// description:
// ===================================================================
using System;
namespace YunCMS.Model
{
	/// <summary>
	///YCUser Model
	/// </summary>
	[Serializable]
	public class YCUser
	{
		#region 
		private int _id;
		private string _useraccount = String.Empty;
		private string _password = String.Empty;
		private string _email = String.Empty;
		private string _telephone = String.Empty;
		private string _name = String.Empty;
		private bool _deactive;
		private DateTime? _updatetime;
		private int? _logintimes;
		private bool? _gender;
		private DateTime? _lastlogin;
		private string _otherinfo = String.Empty;
		private string _dept = String.Empty;
		private int? _role;
		#endregion
		
		#region 
		///<summary>
		///Constructor
		///</summary>
		public YCUser()
		{
		}
		///<summary>
		///Constructor
		///</summary>
		public YCUser
		(
			int id,
			string useraccount,
			string password,
			string email,
			string telephone,
			string name,
			bool deactive,
			DateTime? updatetime,
			int? logintimes,
			bool? gender,
			DateTime? lastlogin,
			string otherinfo,
			string dept,
			int? role
		)
		{
			_id          = id;
			_useraccount = useraccount;
			_password    = password;
			_email       = email;
			_telephone   = telephone;
			_name        = name;
			_deactive    = deactive;
			_updatetime  = updatetime;
			_logintimes  = logintimes;
			_gender      = gender;
			_lastlogin   = lastlogin;
			_otherinfo   = otherinfo;
			_dept        = dept;
			_role        = role;
			
		}
		#endregion
		
		#region 
		
		///<summary>
		///ID
		///</summary>
		public int ID
		{
			get {return _id;}
			set {_id = value;}
		}

		///<summary>
		///User Account 
		///</summary>
		public string UserAccount
		{
			get {return _useraccount;}
			set {_useraccount = value;}
		}

		///<summary>
		///Password
		///</summary>
		public string Password
		{
			get {return _password;}
			set {_password = value;}
		}

		///<summary>
		///Email
		///</summary>
		public string Email
		{
			get {return _email;}
			set {_email = value;}
		}

		///<summary>
		///Telephone
		///</summary>
		public string Telephone
		{
			get {return _telephone;}
			set {_telephone = value;}
		}

		///<summary>
		///Full name of user's
		///</summary>
		public string Name
		{
			get {return _name;}
			set {_name = value;}
		}

		///<summary>
		///Determines if it's actived
		///</summary>
		public bool Deactive
		{
			get {return _deactive;}
			set {_deactive = value;}
		}

		///<summary>
		///Add or update time
		///</summary>
		public DateTime? UpdateTime
		{
			get {return _updatetime;}
			set {_updatetime = value;}
		}

		///<summary>
		///How many times user login system
		///</summary>
		public int? LoginTimes
		{
			get {return _logintimes;}
			set {_logintimes = value;}
		}

		///<summary>
		///Gender
		///</summary>
		public bool? Gender
		{
			get {return _gender;}
			set {_gender = value;}
		}

		///<summary>
		///When last login system
		///</summary>
		public DateTime? LastLogin
		{
			get {return _lastlogin;}
			set {_lastlogin = value;}
		}

		///<summary>
		///Other infromation
		///</summary>
		public string OtherInfo
		{
			get {return _otherinfo;}
			set {_otherinfo = value;}
		}

		///<summary>
		///Department
		///</summary>
		public string Dept
		{
			get {return _dept;}
			set {_dept = value;}
		}

		///<summary>
		///User's role
		///</summary>
		public int? Role
		{
			get {return _role;}
			set {_role = value;}
		}
	
		#endregion	
	}
}



